import React from 'react';
import { StyleSheet, Text, View, Alert } from 'react-native';
import {Button, InputItem} from 'antd-mobile'

export default class App extends React.Component {
  render() {
    return (
      <View style={styles.container}>
        <InputItem
          onChangeText={this.handleChange}
          placeholder="Type here to translate!"
        />
        <Text>Open up App.js to start working on your app!</Text>
        <Button>xxx</Button>
      </View>
    );
  }

  handleChange = (text) => {
    Alert.alert(`您输入的是:${text}`)
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    alignItems: 'center',
    justifyContent: 'center',
  },
});
